package com.tanhua.manager;

import com.tanhua.service.DateCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;
import java.util.Date;

@RestController
public class DateCountController {
    @Autowired
    private DateCountService dateCountService;
    @GetMapping("/dashboard/users")//查询新增、活跃用户、次日留存率
    public ResponseEntity dateCount(Long sd,Long ed,int type) throws ParseException {

           return dateCountService.findCount(sd,ed,type);
    }
}
